package com.pacy.pacybaseproject.viewmodels;

import android.app.Application;


import com.pacy.pacybaseproject.activitys.ExchangeNowActivity;

import io.reactivex.annotations.NonNull;
import me.goldze.mvvmhabit.base.BaseViewModel;
import me.goldze.mvvmhabit.binding.command.BindingAction;
import me.goldze.mvvmhabit.binding.command.BindingCommand;
import me.goldze.mvvmhabit.bus.event.SingleLiveEvent;

/**
 * @author PACY
 * @date 2024/1/17
 * description:
 */
public class ExchangeDetailViewModel extends BaseViewModel {
    public SingleLiveEvent<String> imgurl=new SingleLiveEvent<>("https://pic1.zhimg.com/v2-ff5dadc5efff633063ab23a75a0772b4_r.jpg");


    public SingleLiveEvent<String> title=new SingleLiveEvent<>();
    public SingleLiveEvent<String> scroNum=new SingleLiveEvent<>();
    public SingleLiveEvent<String> priceNum=new SingleLiveEvent<>();
    public SingleLiveEvent<String> slogen=new SingleLiveEvent<>();
    public ExchangeDetailViewModel(@NonNull Application application) {
        super(application);
    }

    public BindingCommand toNextPage=new BindingCommand(new BindingAction() {
        @Override
        public void call() {
            startActivity(ExchangeNowActivity.class);
        }
    });
}
